package cn.hnh.controller;

import cn.hnh.constrant.ResultInfo;
import cn.hnh.service.ArchivesService;
import cn.hnh.vo.ArchivesVo;
import cn.hnh.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author HuangNianHong
 * @Time 2021/1/2 22:02
 */
@RestController
@Api(tags ="用户归档页接口规范说明" )
public class ArchivesController {
    @Autowired
    private ArchivesService archivesService;
    @ApiOperation(value = "分页查询归档页信息")
    @ApiImplicitParam(name = "pagenum",value = "当前页码",dataType = "Integer",defaultValue = "1")
    @RequestMapping("/archives/{pagenum}")
    public Result<ArchivesVo> getArchives(@PathVariable("pagenum")Integer pagenum){
        return archivesService.getArchivesVo(pagenum);
    }
}
